home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-11 | 1.6 KB | 35 lines | [TEXT/EMAC] |
- Notes on the THINK C 6.0 Macintosh port of Bison 1.22
- J. Scott Hofmann (scotth@visix.com) 8/10/94
-
- This is a very minimal port to the Macintosh. In fact, the only changes I made were
- to #include <console.h> and call ccommand() in main.c. I also added these #defines
- to the THINK C options dialog:
-
- #define XPFILE1 "bison.hairy"
- #define XPFILE "bison.simple"
-
- #define HAVE_STRING_H
- #define HAVE_STDLIB_H
- #define HAVE_STRERROR
-
- #define mktemp tmpnam
-
- Due to differences in the semantics of tmpnam() vs. mktemp(), bison leaves several
- small temp files in its directory. I'll eventually get around to fixing this when
- I complete a Metrowerks port which includes an enhanced front end. (Yes! An actual
- Macintosh front end!)
-
- In order to use bison, copy the application "bison-1.22" and the grammar skeleton
- files "bison.hairy" and "bison.simple" to the directory containing the grammar file
- you want processed. Then, just enter the command line arguments you would under
- UNIX in ccommand()s dialog box. Bison will then run, printing anything that would
- normally appear on stdout or stderr in the console window.
-
- For instructions on how to use bison, either read the man page "bison.1" (a lot
- easier on a UNIX box with nroff), read the texinfo source "bison.texinfo", or
- copy the info files "bison.info-*" (don't forget "bison.info", as well) into
- the info subdirectory of Marc Parmet's excellent Macintosh port of GNU Emacs
- 18.59, available from ftp.cs.cornell.edu:/pub/parmet. You'll need the "info"
- package, distributed seperately from the main Emacs distribution. Make sure you
- have version 1.14 of emacs.
-